{extend name="main/index" /}
{block name="main"}
<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>

        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="#">经营管理模块</a>
            </li>

            <li class="active">投标立项申请</li>
        </ul><!-- .breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search">
                <span class="input-icon">
                    <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
                    <i class="icon-search nav-search-icon"></i>
                </span>
            </form>
        </div><!-- #nav-search -->
    </div>

    <div class="page-content">
        <div class="page-header">
            <h1 style="margin-left: 350px">
                投标立项申请表
            </h1>
        </div>

        <div class="row">
            <div class="col-xs-12">
                <form class="form-horizontal" role="form" action="/admin/bids/projectDoAdd" method="post" enctype="multipart/form-data">
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 项目名称 : </label>

                        <div class="col-sm-9">
                            <input type="text" id="form-field-1" placeholder="projectName" name="bid_project" class="col-xs-10 col-sm-5" />
                        </div>
                    </div>

                    <div class="space-4"></div>

<<<<<<< HEAD
                    <!-- <div class="form-group">
=======
                    <div class="form-group">
>>>>>>> a40bd7c37eef93aca4b7ae3126fd10da65b4232b
                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 流程名称 : </label>

                        <div class="col-sm-9">
                            <input type="text" id="form-field-2" placeholder="flow_name" name="flow_name" class="col-xs-10 col-sm-5" />
                        </div>
<<<<<<< HEAD
                    </div> -->
=======
                    </div>
>>>>>>> a40bd7c37eef93aca4b7ae3126fd10da65b4232b
                    <div class="space-4"></div>

                    <div class="space-4"></div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 招标单位 : </label>

                        <div class="col-sm-9">
                            <input type="text" id="form-field-2" placeholder="tenderer" name="tenderer" class="col-xs-10 col-sm-5" />
                        </div>
                    </div>
                    <div class="space-4"></div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 招标时间 : </label>

                        <div class="col-sm-9">
                            <input type="date" id="form-field-2"  name="bids_time" class="col-xs-10 col-sm-5" />
                        </div>
                    </div>
                    <div class="space-4"></div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 招标地点 : </label>

                        <div class="col-sm-9">
<<<<<<< HEAD
                            <input type="text" id="form-field-2" placeholder="address" name="bids_address" class="col-xs-10 col-sm-5" />
=======
                            <input type="text" id="form-field-2"  name="bids_address" class="col-xs-10 col-sm-5" />
>>>>>>> a40bd7c37eef93aca4b7ae3126fd10da65b4232b
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 需求分析 : </label>
<<<<<<< HEAD
                        <div class="col-sm-9 ">
                            <input type="file" id="form-field-1"  name="demand_analysis" class="col-xs-10 col-sm-5 dd" />
                            <a  class="btn btn-xs btn-danger " id="upload">点击上传</a>
=======

                        <div class="col-sm-9 ">
                            <input type="file" id="form-field-2"  name="demand_analysis" class="col-xs-10 col-sm-5 dd" />
                            <!-- <a class="layui-btn layui-btn-mini" id="btn_uploadimg">点击上传</a> -->
>>>>>>> a40bd7c37eef93aca4b7ae3126fd10da65b4232b
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 项目建议书 : </label>
<<<<<<< HEAD
                        <div class="col-sm-9">
                            <input type="file" id="form-field-2"  name="project_proposal" class="col-xs-10 col-sm-5 dd" />
                            <a  class="btn btn-xs btn-danger upload" >点击上传</a>
=======

                        <div class="col-sm-9">
                            <input type="file" id="form-field-2"  name="project_proposal" class="col-xs-10 col-sm-5" />
>>>>>>> a40bd7c37eef93aca4b7ae3126fd10da65b4232b
                        </div>
                    </div>
                    <div class="space-4"></div>
                    <div class="clearfix form-actions">
                        <div class="col-md-offset-3 col-md-9">
                            <button class="btn btn-info" type="submit">
                                <i class="icon-ok bigger-110"></i>
<<<<<<< HEAD
                                发起流程
                            </button>
                            &nbsp; &nbsp; &nbsp;
                            
=======
                                提交
                            </button>
                            &nbsp; &nbsp; &nbsp;
                            <button class="btn" type="reset">
                                <i class="icon-undo bigger-110"></i>
                                重置
                            </button>
>>>>>>> a40bd7c37eef93aca4b7ae3126fd10da65b4232b
                        </div>
                    </div>
            </form>
        </div>
    </div>
</div>
<<<<<<< HEAD

{/block}

{block name="myjs"}
{js href="/static/admin/assets/js/jquery.min.js"}
<script type="text/javascript">
    $(function () {
           $("#upload").click(function () {
               var formData = new FormData($('#uploadForm')[0]);
              $.ajax({
                type: 'post',
                 url: "{:url('/admin/bids/fileUpload/')}",
                 data: formData,
                 cache:false, 
                 processData:false,
                 cententType:false,
               }).success(function (data) {
                  alert("上传成功");
               }).error(function () {
                  alert("上传失败");
               });
            });
          });
=======
<script>

    $(function () {
        
           $("#btn_uploadimg").click(function () {
               var fileObj = document.getElementById("form-field-2").files[0]; // js 获取文件对象
               if (typeof (fileObj) == "undefined" || fileObj.size <= 0) {
                   alert("请选择文件");
                   return;
               }
               var formFile = new FormData();
               formFile.append("action", "UploadVMKImagePath");  
               formFile.append("file", fileObj); //加入文件对象
 
               //第一种  XMLHttpRequest 对象
               //var xhr = new XMLHttpRequest();
               //xhr.open("post", "/Admin/Ajax/VMKHandler.ashx", true);
               //xhr.onload = function () {
               //    alert("上传完成!");
               //};
               //xhr.send(formFile);
 
               //第二种 ajax 提交
 
               var data = formFile;
               $.ajax({
                   url: "/Admin/Ajax/VMKHandler.ashx",
                   data: data,
                   type: "Post",
                   dataType: "json",
                   cache: false,//上传文件无需缓存
                   processData: false,//用于对data参数进行序列化处理 这里必须false
                   contentType: false, //必须
                   success: function (result) {
                       alert("上传完成!");
                   },
               })
           })
       })






>>>>>>> a40bd7c37eef93aca4b7ae3126fd10da65b4232b
</script>




{/block}